package cn.jbooter.shiro.autoconfigure.config;

import org.springframework.context.annotation.Bean;

import cn.jbooter.shiro.autoconfigure.filter.spring_session.mgt.SpringSessionRestWebApplicationFilter;


/**
 * 配置自定义的spring-session前后分离rest接口项目的过滤器
 * @author hejian
 *
 */
public class SpringSessionRestShiroFilterConfiguration {

	/**
	 * 配置springSession的rest方式的拦截器
	 * @return
	 */
	@Bean
	public CustomShiroFilterDefinition springSessionRestShiroFilterDefinition() {
		CustomShiroFilterDefinition rs = new CustomShiroFilterDefinition();
		rs.setCustomShiroFilterMap(SpringSessionRestWebApplicationFilter
				.createInstanceMap());
		return rs;
	}
	
	
}
